<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>chracter.php</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
set_include_path(get_include_path() . ':' . dirname(__FILE__) . '/../library');

require_once 'Wow/Armory/App/SetUp.php';
require_once 'Wow/Armory/App/Autoload.php';

$app = new Wow_Armory_App_SetUp();
$app->loadEnvironment(Wow_Armory_App_SetUp::DEVELOPMENT)
    ->loadExceptionClass()
    ->loadLibrary();

$cache = new Wow_Armory_Core_Cache_File(array(
    'dir' => 'string',
    'suffix' => 'string',
    'automaticSerialize' => true
));

/*    
try {
    $config = new Wow_Armory_Config(true);
    $config->setRealm(new Wow_Armory_Realm('Festung der Stürme'))
           ->setCharacter(new Wow_Armory_Character('Ahrian'))
           ->setLocation(Wow_Armory_Config::EU);
    $parse  = new Wow_Armory_Parse(Wow_Armory_Parse::CHARACTER, $config);
    $parse->addHandler(new Wow_Armory_Handler_Default());
    $result = $parse->fetch();
    $default = $result->getResult('Wow_Armory_Handler_Default');
} catch (Wow_Armory_Exception $e) {
    var_dump($e->getCode());
}
*/

/*
1001 = 
1002 = 
1003 = 
1004 = 
1005 = 
1006 = 
1007 = 
1008 = 
1009 = 
1010 = 
1011 = 
1012 = Character name is empty (Wow_Armory_Character <__construct($character)>).
1013 = Realm name is empty or not a string (Wow_Armory_Realm <__construct($realm)>).
1014 = Class not found (Wow_Armory_App_Autoload <autoload($name)>).
1015 = Url empty for curl (Wow_Armory_Core_Curl <setUrl($url)>).
1016 = The configuration is not valid.
1017 = The type has to be a string mixed as GUILD or CHARACTER.
1018 = THe parse method is not implemented now.
1019 = Guild name must be a string.
1020 = Configuration is not correct.
1021 = The given type is not correct.
*/
?>
</body>
</html>    